﻿using Zws.MongoDb;

namespace App.Chat.Models.MongoModels
{
    /// <summary>
    /// 用户创建的会话列表项
    /// </summary>
    public class SessionUsers : MongoObj
    {
        /// <summary>
        /// 会话所属用户Id
        /// </summary>
        public string UserId { get; set; }
        /// <summary>
        /// 会话用户Id
        /// </summary>
        public string SessionId { get; set; }
        public string SessionName { get; set; }
        /// <summary>
        /// 会话最后接收的消息
        /// </summary>
        public string LastMsg { get; set; }
        /// <summary>
        /// 会话最后消息接收时间
        /// </summary>
        public DateTime RecTime { get; set; } = DateTime.UtcNow;
        /// <summary>
        /// 会话未读消息数量
        /// </summary>
        public int UnReadMsgCount { get; set; }
        /// <summary>
        /// 是否在线
        /// </summary>
        public bool IsOnline { get; set; }
        /// <summary>
        /// 是否是群组
        /// </summary>
        public bool IsGroup { get; set; }
    }
}
